﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000497 RID: 1175
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EntityBindPropCsReq : IMessage<EntityBindPropCsReq>, IMessage, IEquatable<EntityBindPropCsReq>, IDeepCloneable<EntityBindPropCsReq>, IBufferMessage
	{
		// Token: 0x17000F1F RID: 3871
		// (get) Token: 0x060034EA RID: 13546 RVA: 0x000915F5 File Offset: 0x0008F7F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EntityBindPropCsReq> Parser
		{
			get
			{
				return EntityBindPropCsReq._parser;
			}
		}

		// Token: 0x17000F20 RID: 3872
		// (get) Token: 0x060034EB RID: 13547 RVA: 0x000915FC File Offset: 0x0008F7FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EntityBindPropCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000F21 RID: 3873
		// (get) Token: 0x060034EC RID: 13548 RVA: 0x0009160E File Offset: 0x0008F80E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EntityBindPropCsReq.Descriptor;
			}
		}

		// Token: 0x060034ED RID: 13549 RVA: 0x00091615 File Offset: 0x0008F815
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBindPropCsReq()
		{
		}

		// Token: 0x060034EE RID: 13550 RVA: 0x00091620 File Offset: 0x0008F820
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBindPropCsReq(EntityBindPropCsReq other) : this()
		{
			this.pHMCEKDLHBH_ = other.pHMCEKDLHBH_;
			this.motion_ = ((other.motion_ != null) ? other.motion_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060034EF RID: 13551 RVA: 0x0009166C File Offset: 0x0008F86C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBindPropCsReq Clone()
		{
			return new EntityBindPropCsReq(this);
		}

		// Token: 0x17000F22 RID: 3874
		// (get) Token: 0x060034F0 RID: 13552 RVA: 0x00091674 File Offset: 0x0008F874
		// (set) Token: 0x060034F1 RID: 13553 RVA: 0x0009167C File Offset: 0x0008F87C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool PHMCEKDLHBH
		{
			get
			{
				return this.pHMCEKDLHBH_;
			}
			set
			{
				this.pHMCEKDLHBH_ = value;
			}
		}

		// Token: 0x17000F23 RID: 3875
		// (get) Token: 0x060034F2 RID: 13554 RVA: 0x00091685 File Offset: 0x0008F885
		// (set) Token: 0x060034F3 RID: 13555 RVA: 0x0009168D File Offset: 0x0008F88D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo Motion
		{
			get
			{
				return this.motion_;
			}
			set
			{
				this.motion_ = value;
			}
		}

		// Token: 0x060034F4 RID: 13556 RVA: 0x00091696 File Offset: 0x0008F896
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EntityBindPropCsReq);
		}

		// Token: 0x060034F5 RID: 13557 RVA: 0x000916A4 File Offset: 0x0008F8A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EntityBindPropCsReq other)
		{
			return other != null && (other == this || (this.PHMCEKDLHBH == other.PHMCEKDLHBH && object.Equals(this.Motion, other.Motion) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060034F6 RID: 13558 RVA: 0x000916F4 File Offset: 0x0008F8F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PHMCEKDLHBH)
			{
				num ^= this.PHMCEKDLHBH.GetHashCode();
			}
			if (this.motion_ != null)
			{
				num ^= this.Motion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060034F7 RID: 13559 RVA: 0x00091749 File Offset: 0x0008F949
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060034F8 RID: 13560 RVA: 0x00091751 File Offset: 0x0008F951
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060034F9 RID: 13561 RVA: 0x0009175C File Offset: 0x0008F95C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.PHMCEKDLHBH)
			{
				output.WriteRawTag(24);
				output.WriteBool(this.PHMCEKDLHBH);
			}
			if (this.motion_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Motion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060034FA RID: 13562 RVA: 0x000917B8 File Offset: 0x0008F9B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PHMCEKDLHBH)
			{
				num += 2;
			}
			if (this.motion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Motion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060034FB RID: 13563 RVA: 0x00091804 File Offset: 0x0008FA04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EntityBindPropCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PHMCEKDLHBH)
			{
				this.PHMCEKDLHBH = other.PHMCEKDLHBH;
			}
			if (other.motion_ != null)
			{
				if (this.motion_ == null)
				{
					this.Motion = new MotionInfo();
				}
				this.Motion.MergeFrom(other.Motion);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060034FC RID: 13564 RVA: 0x0009186C File Offset: 0x0008FA6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060034FD RID: 13565 RVA: 0x00091878 File Offset: 0x0008FA78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 42U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.motion_ == null)
						{
							this.Motion = new MotionInfo();
						}
						input.ReadMessage(this.Motion);
					}
				}
				else
				{
					this.PHMCEKDLHBH = input.ReadBool();
				}
			}
		}

		// Token: 0x040014BD RID: 5309
		private static readonly MessageParser<EntityBindPropCsReq> _parser = new MessageParser<EntityBindPropCsReq>(() => new EntityBindPropCsReq());

		// Token: 0x040014BE RID: 5310
		private UnknownFieldSet _unknownFields;

		// Token: 0x040014BF RID: 5311
		public const int PHMCEKDLHBHFieldNumber = 3;

		// Token: 0x040014C0 RID: 5312
		private bool pHMCEKDLHBH_;

		// Token: 0x040014C1 RID: 5313
		public const int MotionFieldNumber = 5;

		// Token: 0x040014C2 RID: 5314
		private MotionInfo motion_;
	}
}
